import { createRouter, createWebHistory } from "vue-router";
const routes = [
  {
    path: "/",
    name: "Index",
    component: () => import("../Index.vue"),
    children: [
      {
        path: "/analytics",
        name: "Analytics",
        component: () => import("@/views/Analysis.vue"),
      },
      {
        path: "/workspace",
        name: "Workspace",
        component: () => import("@/views/Workspace.vue"),
      },
    ],
  },
];

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes,
});
export default router;
